package com.david.springboot.service;

import com.david.springboot.dao.ArticleMapper;
import com.david.springboot.pojo.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author David
 * @version V1.0
 * @Package com.david.springboot.service
 * @date 2021/5/15 14:30
 */
@Service
public class ArticleService {
    @Autowired
    private ArticleMapper mapper;

    public Article findById(Integer id){
        return mapper.findArticleById(id);
    }
}
